package com.huadao.cart_ccs.greendao.entity;

import com.huadao.cart_ccs.R;
import com.huadao.cart_ccs.common.ExperimentStageManager;
import com.huadao.cart_ccs.common.ProjectManager;
import com.huadao.cart_ccs.main.CartApplication;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class DeviceRecord {
    @Id
    private Long id;
    private long projectId;
    private long stageId;

    private String device;
    private String name;
    private String data;
    private String direction;
    private Date dateTime;
    private String operator;

    @Keep
    public DeviceRecord() {
        this.projectId=ProjectManager.getInstance().getProjectId();
        this.stageId=ExperimentStageManager.getInstance().getStageId();
    }

    @Generated(hash = 679517721)
    public DeviceRecord(Long id, long projectId, long stageId, String device,
            String name, String data, String direction, Date dateTime,
            String operator) {
        this.id = id;
        this.projectId = projectId;
        this.stageId = stageId;
        this.device = device;
        this.name = name;
        this.data = data;
        this.direction = direction;
        this.dateTime = dateTime;
        this.operator = operator;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getProjectId() {
        return this.projectId;
    }

    public void setProjectId(long projectId) {
        this.projectId = projectId;
    }

    public long getStageId() {
        return this.stageId;
    }

    public void setStageId(long stageId) {
        this.stageId = stageId;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getData() {
        return this.data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getDirection() {
        return this.direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public Date getDateTime() {
        return this.dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getOperator() {
        return this.operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getDevice() {
        return this.device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

}
